// malred-vue-template-js/src/includes/progress-bar.js
/*
 * @Author Malred
 * @Date 2025-05-31 11:56:14
 * @Description 
 */
import NProgress from "nprogress";

export default (router) => {
    router.beforeEach((to, from, next) => {
        NProgress.start();
        next();
    });

    router.afterEach(NProgress.done);
};
